import App from './App'
import store from './store'
import Vuex from "vuex";
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import { request } from '@/utils/request'

Vue.config.productionTip = false
Vue.prototype.$http = request

App.mpType = 'app'
const app = new Vue({
  ...App,store
})
console.log(1)
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import { request } from '@/utils/request'

export function createApp() {
  const app = createSSRApp(App)
  app.config.globalProperties.$http = request
  app.use(store)
  console.log(2)
  return {
    app
  }
}
// #endif
